package com.kun.req;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author kunkun
 * @className MemberSendCodeReq
 * @Description ...
 * @date 2025/7/17 13:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MemberSendCodeReq {
    @NotBlank(message = "Mobile不能为空")
    @Pattern(regexp = "^1\\d{10}$",message = "手机号码格式错误")
    String mobile;
}